<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<script type="text/javascript">
			while(true)
			{
				var a=Math.floor(Math.random()*100);
				var b=Math.floor(Math.random()*100);
				
				var test=prompt("请问"+a+"+"+b+"的答案为多少？");
				if(test==(a+b))
				{
					alert("恭喜你回答正确！")
				}
				else
				{
					alert("回答错误！！！")
				}
				var result=confirm("是否还要继续？")
				if(result==false)
				{
					alert("已经退出！！！");
					break;
				}
			}
		</script>
	</body>
</html>
